package com.tanhua.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.db.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserInfoMapper extends BaseMapper<UserInfo> {
    @Select("SELECT  info.* FROM  tb_user_info info   INNER JOIN tb_black_list black   ON info.id = black.black_user_id WHERE black.user_id = #{userId} ")
    public IPage<UserInfo> findBlackList(Page page, @Param("userId")Long userId);
}